import request from '../index.js';
import { stringify } from 'qs';

// 账号密码登录
export const login = (data) => {
	return request({
		url: `api/member.Login/login`,
		method: 'post',
		data,
	});
}

// 微信登录
export const wxlogin = (data) => {
	return request({
		url: `/api/member.Login/mini`,
		method: 'post',
		data,
	});
}

// 小程序手机登录
export const userlogin = (data) => {
	return request({
		url: `/api/member.Login/miniPhone`,
		method: 'post',
		data,
	});
}

// 退出登录
export const loginOut = (data) => {
	return request({
		url: `/api/member.Logout/logout`,
		method: 'post',
		data
	});
}

// 小程序微信绑定
export const bindPhoneMini = (data) => {
	return request({
		url: `/api/member.Member/bindPhoneMini`,
		method: 'post',
		data
	});
}

// 修改密码
export const changepwd = (data) => {
	return request({
		url: `/api/member.Member/pwd`,
		method: 'post',
		data
	});
}



